home *** CD-ROM | disk | FTP | other *** search
/ MacTech 1 to 12 / MacTech-vol-1-12.toast / Source / MacTech® Magazine / Volume 02 - 1986 / 02.07 Jul 86.sit / 02.07 Jul 86 / modula source / PBFileManagerASM.ASM < prev    next >
MacBinary  |  1986-04-11  |  1.5 KB  |  [TEXT/EDIT]

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: MacBinary (archive/macBinary).

ConfidenceProgramDetectionMatch TypeSupport
10% dexvert MacBinary (archive/macBinary) fallback Supported
1% dexvert Text File (text/txt) fallback Supported
100% file MacBinary II, inited, Thu Apr 10 20:27:43 1986, modified Thu Apr 10 20:27:43 1986, creator Macintosh Edit, type ASCII, 927 bytes "PBFileManagerASM.ASM" , at 0x41f 348 bytes resource default (weak)
99% file data default
49% TrID Macintosh plain text (MacBinary) default
33% TrID raw Group 3 FAX bitmap default (weak)
16% TrID MacBinary 2 default (weak)
100% siegfried fmt/1762 MacBinary (II) default
100% lsar MacBinary default


id metadata
keyvalue
macFileType[TEXT]
macFileCreator[EDIT]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 14 50 42 46 69 6c 65 | 4d 61 6e 61 67 65 72 41 |..PBFile|ManagerA|
|00000010| 53 4d 2e 41 53 4d 00 00 | 00 00 00 00 00 00 00 00 |SM.ASM..|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 45 44 49 | 54 01 00 00 00 00 00 00 |.TEXTEDI|T.......|
|00000050| 00 00 00 00 00 03 9f 00 | 00 01 5c 9a c2 19 0f 9a |........|..\.....|
|00000060| c2 19 0f 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 01 76 00 00 |........|.....v..|
|00000080| 3b 20 54 6f 6d 20 54 61 | 79 6c 6f 72 0d 3b 20 33 |; Tom Ta|ylor.; 3|
|00000090| 37 30 37 20 50 6f 69 6e | 63 69 61 6e 61 20 44 72 |707 Poin|ciana Dr|
|000000a0| 2e 20 23 31 33 37 0d 3b | 20 53 61 6e 74 61 20 43 |. #137.;| Santa C|
|000000b0| 6c 61 72 61 2c 20 43 41 | 20 39 35 30 35 31 0d 3b |lara, CA| 95051.;|
|000000c0| 0d 3b 20 54 68 65 20 6f | 6e 65 20 70 72 6f 63 65 |.; The o|ne proce|
|000000d0| 64 75 72 65 20 69 6e 20 | 74 68 69 73 0d 3b 20 66 |dure in |this.; f|
|000000e0| 69 6c 65 20 69 73 20 75 | 73 65 64 20 74 6f 20 69 |ile is u|sed to i|
|000000f0| 6d 70 6c 65 6d 65 6e 74 | 0d 3b 20 61 6c 6c 20 6f |mplement|.; all o|
|00000100| 66 20 74 68 65 20 50 42 | 20 63 61 6c 6c 73 2e 20 |f the PB| calls. |
|00000110| 20 54 68 65 0d 3b 20 68 | 69 67 68 65 72 20 6c 65 | The.; h|igher le|
|00000120| 76 65 6c 20 4d 6f 64 75 | 6c 61 2d 32 20 70 72 6f |vel Modu|la-2 pro|
|00000130| 67 72 61 6d 0d 3b 20 28 | 50 42 46 69 6c 65 4d 61 |gram.; (|PBFileMa|
|00000140| 6e 61 67 65 72 2e 4d 4f | 44 29 0d 3b 20 70 61 73 |nager.MO|D).; pas|
|00000150| 73 65 73 20 69 6e 20 74 | 68 65 20 61 63 74 75 61 |ses in t|he actua|
|00000160| 6c 20 76 61 6c 75 65 0d | 3b 20 6f 66 20 74 68 65 |l value.|; of the|
|00000170| 20 50 42 20 74 72 61 70 | 20 61 6e 64 20 74 68 65 | PB trap| and the|
|00000180| 0d 3b 20 70 72 6f 63 65 | 64 75 72 65 20 68 65 72 |.; proce|dure her|
|00000190| 65 20 6d 6f 64 69 66 69 | 65 73 20 69 74 73 65 6c |e modifi|es itsel|
|000001a0| 66 0d 3b 20 74 6f 20 65 | 78 65 63 75 74 65 20 74 |f.; to e|xecute t|
|000001b0| 68 61 74 20 74 72 61 70 | 2e 0d 0d 44 43 2e 57 09 |hat trap|...DC.W.|
|000001c0| 4c 6f 77 4c 65 76 65 6c | 50 42 0d 0d 61 73 79 6e |LowLevel|PB..asyn|
|000001d0| 63 54 72 70 42 69 74 09 | 45 51 55 09 24 34 30 30 |cTrpBit.|EQU.$400|
|000001e0| 0d 0d 3b 20 20 20 20 50 | 52 4f 43 45 44 55 52 45 |..; P|ROCEDURE|
|000001f0| 20 4c 6f 77 4c 65 76 65 | 6c 50 42 20 28 70 42 6c | LowLeve|lPB (pBl|
|00000200| 6b 3a 20 50 61 72 6d 42 | 6c 6b 50 74 72 3b 0d 3b |k: ParmB|lkPtr;.;|
|00000210| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000220| 20 20 20 20 20 20 20 20 | 20 20 61 73 79 6e 63 3a | | async:|
|00000230| 20 42 4f 4f 4c 45 41 4e | 3b 0d 3b 09 09 20 20 20 | BOOLEAN|;.;.. |
|00000240| 20 20 20 20 20 20 20 20 | 74 72 61 70 3a 20 43 41 | |trap: CA|
|00000250| 52 44 49 4e 41 4c 3b 0d | 3b 09 09 20 20 20 20 20 |RDINAL;.|;.. |
|00000260| 20 20 20 20 20 20 73 65 | 6c 65 63 74 6f 72 3a 20 | se|lector: |
|00000270| 49 4e 54 45 47 45 52 29 | 20 3a 20 4f 73 45 72 72 |INTEGER)| : OsErr|
|00000280| 3b 0d 4c 6f 77 4c 65 76 | 65 6c 50 42 3a 0d 09 4d |;.LowLev|elPB:..M|
|00000290| 4f 56 45 2e 57 09 28 41 | 34 29 2b 2c 44 30 09 3b |OVE.W.(A|4)+,D0.;|
|000002a0| 20 67 65 74 20 74 72 61 | 70 20 73 65 6c 65 63 74 | get tra|p select|
|000002b0| 6f 72 20 28 48 46 53 20 | 6f 6e 6c 79 29 0d 09 4d |or (HFS |only)..M|
|000002c0| 4f 56 45 2e 57 09 28 41 | 34 29 2b 2c 44 31 09 3b |OVE.W.(A|4)+,D1.;|
|000002d0| 20 67 65 74 20 74 72 61 | 70 20 76 61 6c 75 65 0d | get tra|p value.|
|000002e0| 09 54 53 54 2e 57 09 28 | 41 34 29 2b 09 09 3b 20 |.TST.W.(|A4)+..; |
|000002f0| 63 68 65 63 6b 20 66 6f | 72 20 61 73 79 6e 63 20 |check fo|r async |
|00000300| 63 61 6c 6c 0d 09 42 45 | 51 2e 53 09 4e 6f 74 41 |call..BE|Q.S.NotA|
|00000310| 73 79 6e 63 20 20 20 20 | 20 09 3b 20 6e 6f 70 65 |sync | .; nope|
|00000320| 0d 09 4f 52 49 2e 57 09 | 23 61 73 79 6e 63 54 72 |..ORI.W.|#asyncTr|
|00000330| 70 42 69 74 2c 44 31 09 | 3b 20 79 65 70 2c 20 6d |pBit,D1.|; yep, m|
|00000340| 61 6b 65 20 74 72 61 70 | 20 61 73 79 6e 63 0d 4e |ake trap| async.N|
|00000350| 6f 74 41 73 79 6e 63 3a | 0d 09 4c 45 41 09 54 72 |otAsync:|..LEA.Tr|
|00000360| 61 70 70 65 72 2c 41 30 | 09 3b 20 67 65 74 20 61 |apper,A0|.; get a|
|00000370| 64 64 72 65 73 73 20 6f | 66 20 74 72 61 70 20 6c |ddress o|f trap l|
|00000380| 6f 63 61 74 69 6f 6e 0d | 09 4d 4f 56 45 2e 57 09 |ocation.|.MOVE.W.|
|00000390| 44 31 2c 28 41 30 29 09 | 09 3b 20 69 6e 73 74 61 |D1,(A0).|.; insta|
|000003a0| 6c 6c 20 74 72 61 70 0d | 09 4d 4f 56 45 2e 4c 09 |ll trap.|.MOVE.L.|
|000003b0| 28 41 34 29 2b 2c 41 30 | 09 3b 20 67 65 74 20 70 |(A4)+,A0|.; get p|
|000003c0| 61 72 61 6d 20 62 6c 6f | 63 6b 20 61 64 64 72 65 |aram blo|ck addre|
|000003d0| 73 73 0d 54 72 61 70 70 | 65 72 3a 0d 09 44 43 2e |ss.Trapp|er:..DC.|
|000003e0| 57 09 30 09 09 3b 20 50 | 42 20 54 72 61 70 20 67 |W.0..; P|B Trap g|
|000003f0| 6f 65 73 20 68 65 72 65 | 0d 09 4d 4f 56 45 2e 57 |oes here|..MOVE.W|
|00000400| 09 44 30 2c 2d 28 41 34 | 29 09 3b 20 72 65 74 75 |.D0,-(A4|).; retu|
|00000410| 72 6e 20 72 65 73 75 6c | 74 0d 09 52 54 53 0d 00 |rn resul|t..RTS..|
|00000420| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000430| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000440| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000450| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000460| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000470| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000480| 00 00 01 00 00 00 01 16 | 00 00 00 16 00 00 00 46 |........|.......F|
|00000490| 01 da 4e 20 00 17 4f 20 | 00 01 4e 20 00 19 4e 29 |..N ..O |..N ..N)|
|000004a0| 00 00 4f 10 00 02 4e 29 | 00 00 4f 10 00 03 4e 29 |..O...N)|..O...N)|
|000004b0| 14 50 42 46 69 6c 65 4d | 61 6e 61 67 65 72 41 53 |.PBFileM|anagerAS|
|000004c0| 4d 2e 41 53 4d 53 02 00 | 00 00 54 45 58 54 45 44 |M.ASMS..|..TEXTED|
|000004d0| 00 00 54 45 58 54 45 44 | 49 54 01 00 ff ff 00 e8 |..TEXTED|IT......|
|000004e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000004f0| 00 00 9a c0 7e 59 00 00 | 03 9f 00 00 01 5c 43 1a |....~Y..|.....\C.|
|00000500| 46 23 02 56 11 25 46 2b | 02 9e 46 32 02 a5 1a 33 |F#.V.%F+|..F2...3|
|00000510| 46 37 02 ac 4f 10 00 13 | 4e 10 00 14 46 10 20 00 |F7..O...|N...F. .|
|00000520| 4e 10 00 25 1a 10 4e 10 | 00 33 4e 10 00 14 46 10 |N..%..N.|.3N...F.|
|00000530| 20 01 46 2a 02 b0 46 31 | 02 b7 46 38 02 be 46 3e | .F*..F1|..F8..F>|
|00000540| 02 c5 1a 3f 46 47 00 f8 | 4f 10 00 14 4e 10 00 14 |...?FG..|O...N...|
|00000550| 46 10 20 02 4e 10 00 25 | 1a 10 4e 10 00 33 4e 10 |F. .N..%|..N..3N.|
|00000560| 00 14 46 10 20 03 46 29 | 02 cb 46 2f 02 d1 1a 30 |..F. .F)|..F/...0|
|00000570| 46 38 00 f8 12 39 4f 10 | 00 15 4e 18 00 19 4f 10 |F8...9O.|..N...O.|
|00000580| 00 00 00 0a 00 09 06 4d | 6f 6e 61 63 6f 61 00 00 |.......M|onacoa..|
|00000590| 00 04 00 06 00 08 00 00 | 01 00 00 00 01 16 00 00 |........|........|
|000005a0| 00 16 00 00 00 46 00 00 | ec 18 00 f2 00 00 00 1c |.....F..|........|
|000005b0| 00 46 00 01 45 46 4e 54 | 00 00 00 12 45 54 41 42 |.F..EFNT|....ETAB|
|000005c0| 00 00 00 1e 03 eb ff ff | 00 00 00 00 00 01 9e b4 |........|........|
|000005d0| 03 ec ff ff 00 00 00 0e | 00 01 9e bc 00 00 00 00 |........|........|
|000005e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+